package org.example.seckilljava.dto;

import lombok.Data;
import org.example.seckilljava.entity.Order;
import org.example.seckilljava.entity.SeckillRecord;

@Data
public class SeckillMessage {
    private String orderNum;
    private String secNum;
    private Order order;
    private SeckillRecord seckillRecord;
    private Long timestamp;

    public SeckillMessage() {
    }

    public SeckillMessage(String orderNum, String secNum, Order order, SeckillRecord seckillRecord, Long timestamp) {
        this.orderNum = orderNum;
        this.secNum = secNum;
        this.order = order;
        this.seckillRecord = seckillRecord;
        this.timestamp = timestamp;
    }
} 